<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Carreras en Uniminuto</title>
        <style>
            body {
                background-color: lightgrey;
            }
        </style>
    </h:head>
    <h:body>
        <h:panelGroup>
            <h:form>
                <table border="1">
                    <tr>
                        <thead>
                            <th colspan="2">
                                <h2>
                                    Asignación de Carreras.
                                </h2>
                            </th>
                        </thead>
                    </tr>
                    <tr>
                        <td>Nombre</td>
                        <td width="50%" >
                            <h:inputText value="#{programaPregradoBean.nombreInscrito}" size="50">
                            </h:inputText></td>
                    </tr>
                    <tr>
                        <td>Carrera:</td>
                        <td><h:selectOneMenu value="#{programaPregradoBean.programaPregrado}">
                                <f:selectItems value="#{programaPregradoBean.carrerasItems}">
                                </f:selectItems>
                            </h:selectOneMenu>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><h:commandButton value="Registrar" action="#{programaPregradoBean.comprobar()}"></h:commandButton></td>
                    </tr>
                </table>
            </h:form>
        </h:panelGroup>
    </h:body>
</html>

